package com.example.demo.copy;

import org.apache.commons.beanutils.BeanUtils;
import java.lang.reflect.InvocationTargetException;

/**
 * Apache的对象拷贝方法
 */
public class ApacheBeanUtilsCopyService extends AbstractCopyService {
    @Override
    public void copy(Object dest, Object orig) throws InvocationTargetException, IllegalAccessException {
        BeanUtils.copyProperties(dest, orig);
    }
}